<!-- <page-header>
</page-header> -->
<app-table-page #st [tmp]="tmp" [process]="dataProcess" [config]="config" (operateClick)="operate($event)" (_selectChange)="selectChange($event)">
    <ng-template #tmp>
        <button nz-button nzType="primary" down-file http-url="./assets/tmp/app-data.json" (click)="_console($event)">导出数据</button>
        <button nz-button nzType="primary" (click)="batchApply()">批量申请减免</button>
    </ng-template>
</app-table-page>
<nz-modal [(nzVisible)]="isVisible" nzTitle="上传附件" (nzOnCancel)="isVisible = false" (nzOnOk)="handleOk()">
    <div class="clearfix">
        <nz-upload [nzData]="uploadFile"  [nzAction]="api.util.uploadFile.url" nzListType="picture-card" [(nzFileList)]="fileList" [nzShowButton]="fileList.length < 5" [nzShowUploadList]="showUploadList" nzMultiple [nzPreview]="handlePreview">
            <i nz-icon nzType="plus"></i>
            <div class="ant-upload-text">添加图片</div>
        </nz-upload>
        <nz-modal [(nzVisible)]="previewVisible" nzTitle="图片预览" [nzContent]="imgContent" [nzFooter]="null" (nzOnCancel)="previewVisible = false">
            <ng-template #imgContent>
                <img [src]="previewImage" [ngStyle]="{ width: '100%' }" />
            </ng-template>
        </nz-modal>
    </div>
</nz-modal>
